import request from "@/utils/request";

/**
 * 列表
 * @param data
 * @returns {AxiosPromise}
 */
export function listLesson(data) {
    return request({
        url: '/wbzj-biz/lesson/getPageList',
        method: 'post',
        data: data
    })
}

/**
 *
 * @param pkId
 * @returns {AxiosPromise}
 */
export function getLesson(pkId) {
    return request({
        url: '/wbzj-biz/lesson/getLesson/'+ pkId,
        method: 'get'
    })
}

// 保存
export function updateLesson(data) {
    return request({
        url: '/wbzj-biz/lesson/save',
        method: 'post',
        data: data
    })
}

// 删除
export function delLesson(pkId) {
    return request({
        url: '/wbzj-biz/lesson/deleteLesson/' + pkId,
        method: 'delete'
    })
}